/* Import NextUI's font and base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.tiptap {
    background: transparent;
    border-radius: 0 0 5px 5px;
    margin-bottom: 1rem;
    caret-color: #0070f3;
    /* NextUI primary color */
    font-family: 'Inter', sans-serif;
    /* NextUI font */
    position: relative;
    width: 100%;
}

.tiptap > * + * {
    margin-top: 0;
}

.tiptap ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.tiptap ol {
    padding-left: 1.5rem;
    list-style: decimal;
}

.tiptap h1,
.tiptap h2,
.tiptap h3,
.tiptap h4,
.tiptap h5,
.tiptap h6 {
    font-weight: 600;
    /* NextUI heading font weight */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tiptap h1 {
    font-size: 2.5rem;
    /* NextUI h1 size */
}

.tiptap h2 {
    font-size: 2rem;
    /* NextUI h2 size */
}

.tiptap h3 {
    font-size: 1.75rem;
    /* NextUI h3 size */
}

.tiptap h4,
.tiptap h5,
.tiptap h6 {
    font-size: 1rem;
}

.tiptap h4 {
    margin-bottom: 1.33rem;
}

.tiptap h5 {
    margin-bottom: 1.67rem;
}

.tiptap h6 {
    margin-bottom: 2.33rem;
}

.tiptap code {
    background-color: #f5f5f5;
    /* NextUI code block background */
    border-radius: 0.25rem;
    color: #0070f3;
    /* NextUI primary color */
    font-size: 0.875rem;
    padding: 0.2rem 0.4rem;
}

.tiptap pre {
    background: #f5f5f5;
    /* NextUI pre block background */
    color: #333;
    font-family: 'JetBrainsMono', monospace;
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
}

.tiptap code {
    color: inherit;
    padding: 0;
    background: none;
    font-size: 0.8rem;
}

.tiptap blockquote {
    padding-left: 1rem;
    border-left: 4px solid #0070f3;
    /* NextUI blockquote border */
    color: #333;
    font-style: italic;
}

.tiptap hr {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 2rem 0;
    width: 100%;
}

.fullScreenEditor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 60vh;
}

/* Add styles for the editor content */
.tiptap :global(.ProseMirror) {
    outline: none;
    width: 100%;
}

.tiptap :global(.ProseMirror p) {
    margin: 0;
}

/* Add some basic spacing for content */
.tiptap :global(.ProseMirror) > * + * {
    margin-top: 0.75em;
}

.truncatedEditor {
    max-height: 150px; /* Limit the height in non-fullscreen mode */
    overflow-y: auto; /* Allow vertical scrolling */
    text-overflow: ellipsis; /* Add ellipsis for truncated text */
    white-space: normal; /* Allow text wrapping */
}

.fullScreenEditor {
    height: 100vh; /* Full height in fullscreen mode */
    overflow: auto; /* Allow scrolling in fullscreen mode */
}
